package com.itheima.controller;

import com.itheima.common.entity.Result;
import com.itheima.pojo.LoginMes;
import com.itheima.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/member")
public class MemberController {

    @Autowired
    private MemberService memberService;


    @PostMapping("/login")
    public Result login(@RequestBody LoginMes loginMes){
        return memberService.login(loginMes);
    }
}
